<?php
/* @var $this PumpController */
/* @var $model Pump */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'pump-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'no'); ?>
		<?php echo $form->textField($model,'no'); ?>
		<?php echo $form->error($model,'no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'make'); ?>
		<?php echo $form->textArea($model,'make',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'make'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'property_supported_guard_pipe'); ?>
		<?php echo $form->textArea($model,'property_supported_guard_pipe',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'property_supported_guard_pipe'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'distance_from_street_curb'); ?>
		<?php echo $form->textField($model,'distance_from_street_curb'); ?>
		<?php echo $form->error($model,'distance_from_street_curb'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'distance_from_adjacent_building'); ?>
		<?php echo $form->textField($model,'distance_from_adjacent_building'); ?>
		<?php echo $form->error($model,'distance_from_adjacent_building'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'emergency_pump_shutoff_provided'); ?>
		<?php echo $form->textField($model,'emergency_pump_shutoff_provided'); ?>
		<?php echo $form->error($model,'emergency_pump_shutoff_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php echo $form->dropDownlist($model, 'type',$model->getType() ,
		array('prompt' => 'Select a Type',)); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inspection_id'); ?>
		<?php echo $form->textField($model,'inspection_id'); ?>
		<?php echo $form->error($model,'inspection_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->